use of MSXML to generate a .xml suitable with a .xsd

Hi to all,
I need to do a script that uses as input a .xsd, analyses a doors module, and as output the script shall create a .xml that respects the xsd.

My problem is to read the xsd in order to know the name of nodes to create in my xml, and the order in which they have to be created.

I already know how to test the compliance of a xml with a given xsd, but that's all I succeed to do with my xsd...

Whether anybody has already done this kind of job, or has some info for me

thanks in advance for your attention

regards,
xavier
xav31 - Wed Jun 17 12:28:11 EDT 2009

Re: use of MSXML to generate a .xml suitable with a .xsd
IBM_Gust - Wed Jun 17 12:57:25 EDT 2009

Do you think multiple entries in the old DOORS forum about msxml would help?

Re: use of MSXML to generate a .xml suitable with a .xsd
Tony_Goodman - Thu Jun 18 02:47:28 EDT 2009

My approach in the past has been to export DOORS data in an XML format that suited DOORS for future import.

If I wanted the XML in a different format for some other application to read I would use a system call to xsltproc or somesuch to do the transformation using xslt.

This seemed more efficient than trying to build an exporter that recognises different formats. I also used xslt files to transform data from other tools into doors-friendly format before I attempt the import.

This approach meant that I could have a generic xml importer and all I need is a new xslt file for each data source or target.

I haven't had a chance to look at the new RIF capabilities in DOORS 9.2, but I am sure this will save you a lot of work.

Re: use of MSXML to generate a .xml suitable with a .xsd
mgomes - Thu Jun 18 05:17:53 EDT 2009

Hi!

In attach you can find an library that i made to read and write to XML files, for my company.

I hope this can help.
Good luck
Marco
Attachments

attachment_14263980_xmlLib.dxl

Re: use of MSXML to generate a .xml suitable with a .xsd
xav31 - Thu Jun 18 08:23:12 EDT 2009

mgomes - Thu Jun 18 05:17:53 EDT 2009
Hi!

In attach you can find an library that i made to read and write to XML files, for my company.

I hope this can help.
Good luck
Marco

thanks for this, It will help me a lot in my work !!

Nevertheless, do you think it is possible to have "dynamic link" between the xsd content and the xml generated from it ?
I illustrate :
- be able to read the xsd to get back the markup name, and the way they have to be interweaved
- from my doors module, feel and save the xml (so in conformity with the xsd)

thanks again

xavier

Re: use of MSXML to generate a .xml suitable with a .xsd
mgomes - Thu Jun 18 10:16:58 EDT 2009

xav31 - Thu Jun 18 08:23:12 EDT 2009
thanks for this, It will help me a lot in my work !!

Nevertheless, do you think it is possible to have "dynamic link" between the xsd content and the xml generated from it ?
I illustrate :
- be able to read the xsd to get back the markup name, and the way they have to be interweaved
- from my doors module, feel and save the xml (so in conformity with the xsd)

thanks again

xavier

In attach you can find an example the way i use it....i made an adaptation of the code i have!

Is only to show an example of how to use the library that i attach in the previous message.
Attachments

attachment_14264144_sample.dxl

Re: use of MSXML to generate a .xml suitable with a .xsd
xav31 - Mon Jun 29 09:35:54 EDT 2009

thanks everybody for your help !!!